package com.yfg.wap.flight.dao;


import java.util.Date;

import com.yfg.wap.flight.common.DBhelper;
import com.yfg.wap.flight.common.Tools;
import com.yfg.wap.flight.entity.SysOperatorLogs;

public class SysOperatorLogsService {
	
	public void addOperatorLog(SysOperatorLogs log){
		DBhelper dh = new DBhelper();
		log.setOpdesc(Tools.filterHtmlChar(log.getOpdesc()));
		log.setSignNo(Tools.filterHtmlChar(log.getSignNo()));
		String optime = Tools.dateToString(new Date(), "yyyy-MM-dd HH:mm:ss");
		dh.update("INSERT INTO sys_operator_logs(operator,opdesc,optime,ipaddress,systemname,methodname,signNo) VALUES('"+log.getOperator()+"','"+log.getOpdesc()+
					"','"+optime+"','"+log.getIpaddress()+"','"+log.getSystemname()+"','"+log.getMethodname()+"','"+log.getSignNo()+"')");
	}
}
